class NotifierService {

    boolean transactional = false
    def userAccountInstance = new UserAccount(firstName: "D", lastName: "M", email: "d@g.com", password: "pass")

    def mailService

    def contactUser() {
      mailService.sendMail {
        to "${userAccountInstance.email}"
        subject "Welcome ${userAccountInstance?.firstName} ${userAccountInstance?.lastName}"
        html g.render(template: "/common/welcomeEmail", model: [user: userAccountInstance])
      }

    }
}
